import { App, Gtk, Widget } from "astal/gtk4";
import { exec } from "astal/process";
import BarButton from "../../../components/BarButton";

export default () => (
  <BarButton cssName="bar_app_launcher" onClicked={() => exec("anyrun")}>
    <box
      valign={Gtk.Align.CENTER}
      halign={Gtk.Align.CENTER}
      hexpand={true}
      vexpand={true}
      cssName="container"
    >
      <image iconName="archlinux-symbolic" cssClasses={["arch-icon"]} />
      <label label="AnyRun" cssName="label" />
    </box>
  </BarButton>
);
